package com.ruoyi.web.controller.shop.shopuser.service;

import java.util.List;
import java.util.Map;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.web.controller.shop.shopuser.domain.ShopRole;
import com.ruoyi.web.controller.shop.shopuser.domain.ShopUser;

/**
 * 商户信息Service接口
 * 
 * @author ruoyi
 * @date 2020-10-30
 */
public interface IShopUserService 
{
    /**
     * 查询商户信息
     * 
     * @param userId 商户信息ID
     * @return 商户信息
     */
    public Map<String,Object> selectShopUserById(Long userId);
    public Map<String,Object> selectShopRoleByUserId(Long userId);
    public ShopRole selectShopRoleById(Long roleId);

    /**
     * 查询商户信息列表
     * 
     * @param map 商户信息
     * @return 商户信息集合
     */
    public List<Map<String,Object>> selectShopUserList(Map<String,Object> map);

    public List<Map<String,Object>> selectShopRoleList(Map<String,Object> map);

    public List<Map<String,Object>> selectShopMenuList(Map<String,Object> map);
    public List<Map<String,Object>> queryMenuByRoleId(Map<String,Object> map);

    /**
     * 新增商户信息
     * 
     * @param shopUser 商户信息
     * @return 结果
     */
    public AjaxResult insertShopUser(ShopUser shopUser);
    public AjaxResult insertShopRole(ShopRole shopRole);

    /**
     * 修改商户信息
     * 
     * @param shopUser 商户信息
     * @return 结果
     */
    public AjaxResult updateShopUser(ShopUser shopUser);
    public int resetPassword(ShopUser shopUser);
    public int countUserName(String userName);
    public AjaxResult updateShopRole(ShopRole shopRole);

    /**
     * 批量删除商户信息
     * 
     * @param suserIds 需要删除的商户信息ID
     * @return 结果
     */
    public int deleteShopUserByIds(Long[] suserIds);

    /**
     * 删除商户信息信息
     * 
     * @param suserId 商户信息ID
     * @return 结果
     */
    public int deleteShopUserById(Long suserId);

    public AjaxResult removeShopUser(Map<String,Object> map);
    public AjaxResult removeShopRole(Map<String,Object> map);
}
